package com.apartmentManage.Dao;

import com.apartmentManage.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminDao {
    /*根据条件查询*/
    Admin getByRequirement(@Param("admin") Admin admin);

    /*添加数据*/
    int save(@Param("admin") Admin admin);

    /*查询所有No*/
    List<String> getAllNo();

    /*修改数据*/
    int updateByOldPassword(@Param("admin") Admin admin);
}
